package cc.learn.constants

class HotelIndexConstants {
    companion object {
        const val MAPPING_TEMPLATE = """
        {
          "mappings": {
            "properties": {
              "id": {
                "type": "keyword"
              },
              "name": {
                "type": "text",
                "analyzer": "ik_max_word",
                "copy_to": "all"
              },
              "address": {
                "type": "keyword",
                "index": false
              },
              "price": {
                "type": "integer"
              },
              "score": {
                "type": "integer"
              },
              "brand": {
                "type": "keyword",
                "copy_to": "all"
              },
              "city": {
                "type": "keyword"
              },
              "starName": {
                "type": "keyword"
              },
              "business": {
                "type": "keyword",
                "copy_to": "all"
              },
              "pic": {
                "type": "keyword",
                "index": false
              },
              "location": {
                "type": "geo_point"
              },
              "all": {
                "type": "text",
                "analyzer": "ik_max_word"
              }
            }
          }
        }
    """
    }
}
